<template>
  <div class="bubble">{{ text }}</div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.bubble{
  position: relative;
  display: inline-block;
  max-width: 76%;
  word-wrap: break-word;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 18px;
  border: 4px solid #f1f1f1;
  box-shadow: 0px 0px 3px #555555 inset;
  &::before{
    position: absolute;
    display: inline-block;
    content: '';
    top: 10px;
    left: -24px;
    height: 0;
    border: 4px solid rgba(85,85,85,0.1);
    border-width: 4px 10px;
    border-color: transparent rgba(85,85,85,0.1) transparent transparent;
  }
}
</style>
